<div ag-Window id="edit_pdf" title="文库编辑-{{cms_document.editRow.title}}" width='1200px' height='600px'>
    <div class="zs-form-tab ibox">
        <form name="form_pdf" novalidate>
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="text" width="15%">*所属栏目</td>
                        <td class="left" width="35%">
                            <label ng-bind="cms_document_column.editRow.columnName"></label>
                        </td>
                        <td class="text" width="15%">所属专题</td>
                        <td class="left" width="35%">
                            <span>
                                <ag-Combotree class="zs-input" style="width:395px;height: 28px" 
                                    para="{ uDictionary:true,
                                            dictionary:'cms_subject',
                                            pidField:'pid',
                                            leafField:'leaf'}"
                                    ng-model="cms_document.editRow.subject"
                                    text-Value="cms_document.editRow.subjectName"/>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">*标题</td>
                        <td colspan="3" class="left" width="85%"><input type="text"
                            class="zs-input" ng-model="cms_document.editRow.title"></td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">完整标题</td>
                        <td colspan="3" class="left" width="85%"><input type="text"
                            class="zs-input" ng-model="cms_document.editRow.fullTitle"></td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">标题图</td>
                        <td colspan="3" class="left" width="85%">
                            <ag-Upload ng-model="cms_document.editRow.titlePicture" 
                                        para="{filters:[{title:'图片', extensions:'jpg,png'}]}"></ag-Upload>
                        </td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">描述</td>
                        <td colspan="3" class="left" width="85%">
                            <textarea type="text" rows="3" style="resize:none;height:300px;" 
                                class="zs-input" ng-model="cms_document.editRow.describe"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">文库</td>
                        <td colspan="3" class="left" width="85%">
                            <ag-Upload ng-model="cms_document.editRow.pdf" 
                                        para="{filters:[{title:'文库', extensions:'pdf'}]}"></ag-Upload>
                        </td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">状态</td>
                        <td colspan="3" class="left" width="85%">
                            <ag-Combobox class="zs-input" style="width:395px;height: 28px" 
                                para="{ uDictionary:true,
                                        dictionary:'cms_document_static'}"
                                ng-model="cms_document.editRow.state"
                                text-Value="cms_document.editRow.stateName"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="text" width="15%">发布人</td>
                        <td class="left" width="35%"><input type="text"
                            ng-model="cms_document.editRow.release"
                            class="zs-input"></td>
                        <td class="text" width="15%">发布时间</td>
                        <td class="left" width="35%">
                            <ag-Datebox id='publishDate' editable='false' showcurday='true'
                                class="zs-input" style="width:395px;height: 28px"
                                ng-model="cms_document.editRow.publishDate"></ag-Datebox>
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="4">
                            <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                ng-click="formValidate(form_pdf) && saveAdd('cms_document', cms_document.editRow, 'edit_pdf')"/>
                            <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                ng-click="closeWindow('edit_pdf')" />
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>